Alisa Ishikawa
January 5, 2020
The generic syntax for the Plot function is:
Plot(x,y…)
Advanced Plot function syntax is:
plot(x, y, type, main, sub, xlab, ylab)
where…
“p”: points
“l”: lines
“b”: both point and lines in a single place
“c”: join empty point by the lines
“o”: both lines and over-plotted point
“h”: histogram “s”: stair steps
“n”: no plotting
“xlab”: x-axis legends
“ylab”: y-axis legends
Exam grades of 10 students in two courses, X and Y, respectively
X = 40, 15, 50, 12, 22, 29, 21, 35, 14, 15
Y = 41, 42, 32, 14, 42, 27, 13, 50, 33, 22
install.packages("ggplot2")
Package: nCov2019
By: Dr. Guangchuang Yu (Southern Medical University)
remotes::install_github("GuangchuangYu/nCov2019")
Assign x and y
x <- get_nCov2019()
y <- load_nCov2019()
Check results for x and y
x
China (total confirmed cases): 95901
last update: 2020-12-21 20:45:32
y
nCov2019 historical data
last update: 2020-11-26
x['global']
name confirm suspect dead deadRate showRate heal
1 China 95901 7 4771 4.97 FALSE 89480
2 United States 18277433 0 324898 1.78 FALSE 10622096
3 India 10055560 0 145810 1.45 FALSE 9606111
4 Brazil 7238600 0 186764 2.58 FALSE 6409986
5 Russia 2850042 0 50723 1.78 FALSE 2273510
6 France 2529756 0 60665 2.4 FALSE 189638
7 United Kingdom 2079564 0 67718 3.26 FALSE 4380
8 Turkey 2043704 0 18351 0.9 FALSE 1834705
9 Italy 1964054 0 69214 3.52 FALSE 1281258
10 Spain 1817448 0 48926 2.69 FALSE 196958
11 Argentina 1541285 0 41813 2.71 FALSE 1368346
12 Germany 1531998 0 26655 1.74 FALSE 1129280
install.packages("maps")
install.packages("magick")